import { Entity, PrimaryColumn } from 'typeorm';

// 角色和菜单关联表  角色1-N菜单  2个都是主键 -  实体类
@Entity('sys_role_menu', { comment: '角色和菜单关联表' })
export class RoleMenuEntity {
  @PrimaryColumn({ type: 'bigint', name: 'role_id', comment: '角色ID' })
  roleId: number;

  @PrimaryColumn({ type: 'bigint', name: 'menu_id', comment: '菜单ID' })
  menuId: number;
}
